package net.java.dev.jugbrescia.test.xml.commons.digester;

import net.java.dev.jugbrescia.test.xml.model.Book;

import org.apache.commons.digester.AbstractObjectCreationFactory;
import org.xml.sax.Attributes;

public class BookFactory extends AbstractObjectCreationFactory
{
	@Override
	public Object createObject(Attributes attributes) throws Exception
	{
		return new Book(attributes.getValue(0));
	}
}